<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Permission extends Model
{
    protected $table = 'enterprise_permission';
    public function getTypeAttr($value): string
    {
        $type = ['folder'=>'目录','router'=>'菜单','button'=>'按钮'];
        return $type[$value];
    }
}
